]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
shell/app: Also make recent when raising other windows
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 23 Feb 2023 19:36:52 +0000 (20:36 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Thu, 23 Feb 2023 19:45:31 +0000 (20:45 +0100)
Mutter no longer picks the next focus window based on the stacking
order, but on the active workspace's MRU list. So to keep the old
activating behavior, raising other windows is no longer enough.

Use the newly added raise_and_make_recent() method to also move the
window to the front of the MRU list.

https://gitlab.gnome.org/GNOME/mutter/-/issues/2540

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2659>

src/shell-app.c

index 5c38a9c8d84b813d3284ae2667251d2bf7c29846..c164e4eeb093537d5eb7ce38f21ebfa3e2237a31 100644 (file)
@@ -459,7 +459,7 @@ shell_app_activate_window (ShellApp     *app,
           MetaWindow *other_window = iter->data;
 
           if (other_window != window && meta_window_get_workspace (other_window) == workspace)
-            meta_window_raise (other_window);
+            meta_window_raise_and_make_recent (other_window);
         }
       g_slist_free (windows_reversed);